package com.mybatisLike;


import com.mybatisLike.bean.User;
import com.mybatisLike.mapper.UserMapper;
import com.mybatisLike.sqlSession.MySqlsession;

/**
 *  仿写mybatis
 * @author isam2016
 * @create 2021-08-23 2:19 PM
 */
public class Main {

    public static void main(String[] args) {
        MySqlsession sqlsession=new MySqlsession();
        UserMapper mapper = sqlsession.getMapper(UserMapper.class);
        User user = mapper.getUserById("1");
        System.out.println(user.getPassword());
        System.out.println(user.getUsername());
    }
}
